package com.chaihu.front.components.menu;


import com.chaihu.core.context.IPageData;
import com.chaihu.front.service.menu.MenuGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;

@Component("menuGroup")
public class MenuGroupComponent {


    @Autowired
    private MenuGroupService menuGroupService;

    public ResponseEntity<String> list(IPageData pd) {
        return menuGroupService.listMenuGroups(pd);
    }

    public ResponseEntity<String> save(IPageData pd){
        return menuGroupService.saveMenuGroup(pd);
    }

    public ResponseEntity<String> update(IPageData pd){
        return menuGroupService.updateMenuGroup(pd);
    }

    public ResponseEntity<String> delete(IPageData pd){
        return menuGroupService.deleteMenuGroup(pd);
    }

}
